using System;
using System.Collections;
using System.Collections.Generic;

namespace NUtils
{
    public class SimpleID
    {
        public SimpleID(int value)
        {
            _value = value;
        }

        public int ToInt { get { return _value; } }

        public override int GetHashCode()
        {
            return _value.GetHashCode();
        }
        public override bool Equals(object other)
        {
            SimpleID other_id = other as SimpleID;
            if (null != other_id)
            {
                return _value == other_id._value;
            }

            return false;
        }

        public override string ToString()
        {
            return _value.ToString();
        }


        int _value;
    }
}
